package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpWebJwid implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 公众号
     *
     * @mbg.generated
     */
    private String jwid;

    /**
     * 名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 应用类型
     *
     * @mbg.generated
     */
    private String applicationType;

    /**
     * 微信二维码图片
     *
     * @mbg.generated
     */
    private String qrcodeimg;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 微信号
     *
     * @mbg.generated
     */
    private String weixinNumber;

    /**
     * 微信AppId
     *
     * @mbg.generated
     */
    private String weixinAppid;

    /**
     * 微信AppSecret
     *
     * @mbg.generated
     */
    private String weixinAppsecret;

    /**
     * 公众号类型
     *
     * @mbg.generated
     */
    private String accountType;

    /**
     * 是否认证
     *
     * @mbg.generated
     */
    private String authStatus;

    /**
     * Access_Token
     *
     * @mbg.generated
     */
    private String accessToken;

    /**
     * token获取的时间
     *
     * @mbg.generated
     */
    private Date tokenGettime;

    /**
     * api凭证
     *
     * @mbg.generated
     */
    private String apiticket;

    /**
     * apiticket获取时间
     *
     * @mbg.generated
     */
    private Date apiticketGettime;

    /**
     * jsapiticket
     *
     * @mbg.generated
     */
    private String jsapiticket;

    /**
     * jsapiticket获取时间
     *
     * @mbg.generated
     */
    private Date jsapiticketGettime;

    /**
     * 类型：1手动授权，2扫码授权
     *
     * @mbg.generated
     */
    private String authType;

    /**
     * 功能的开通状况：1代表已开通
     *
     * @mbg.generated
     */
    private String businessInfo;

    /**
     * 公众号授权给开发者的权限集
     *
     * @mbg.generated
     */
    private String funcInfo;

    /**
     * 授权方昵称
     *
     * @mbg.generated
     */
    private String nickName;

    /**
     * 授权方头像
     *
     * @mbg.generated
     */
    private String headimgurl;

    /**
     * 授权信息
     *
     * @mbg.generated
     */
    private String authorizationInfo;

    /**
     * 刷新token
     *
     * @mbg.generated
     */
    private String authorizerRefreshToken;

    /**
     * 令牌
     *
     * @mbg.generated
     */
    private String token;

    /**
     * 默认代理id
     *
     * @mbg.generated
     */
    private Integer agentId;

    /**
     * 商户ID
     *
     * @mbg.generated
     */
    private String mchid;

    /**
     * 主页
     *
     * @mbg.generated
     */
    private String mainpage;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getApplicationType() {
        return applicationType;
    }

    public void setApplicationType(String applicationType) {
        this.applicationType = applicationType;
    }

    public String getQrcodeimg() {
        return qrcodeimg;
    }

    public void setQrcodeimg(String qrcodeimg) {
        this.qrcodeimg = qrcodeimg;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getWeixinNumber() {
        return weixinNumber;
    }

    public void setWeixinNumber(String weixinNumber) {
        this.weixinNumber = weixinNumber;
    }

    public String getWeixinAppid() {
        return weixinAppid;
    }

    public void setWeixinAppid(String weixinAppid) {
        this.weixinAppid = weixinAppid;
    }

    public String getWeixinAppsecret() {
        return weixinAppsecret;
    }

    public void setWeixinAppsecret(String weixinAppsecret) {
        this.weixinAppsecret = weixinAppsecret;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(String authStatus) {
        this.authStatus = authStatus;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Date getTokenGettime() {
        return tokenGettime;
    }

    public void setTokenGettime(Date tokenGettime) {
        this.tokenGettime = tokenGettime;
    }

    public String getApiticket() {
        return apiticket;
    }

    public void setApiticket(String apiticket) {
        this.apiticket = apiticket;
    }

    public Date getApiticketGettime() {
        return apiticketGettime;
    }

    public void setApiticketGettime(Date apiticketGettime) {
        this.apiticketGettime = apiticketGettime;
    }

    public String getJsapiticket() {
        return jsapiticket;
    }

    public void setJsapiticket(String jsapiticket) {
        this.jsapiticket = jsapiticket;
    }

    public Date getJsapiticketGettime() {
        return jsapiticketGettime;
    }

    public void setJsapiticketGettime(Date jsapiticketGettime) {
        this.jsapiticketGettime = jsapiticketGettime;
    }

    public String getAuthType() {
        return authType;
    }

    public void setAuthType(String authType) {
        this.authType = authType;
    }

    public String getBusinessInfo() {
        return businessInfo;
    }

    public void setBusinessInfo(String businessInfo) {
        this.businessInfo = businessInfo;
    }

    public String getFuncInfo() {
        return funcInfo;
    }

    public void setFuncInfo(String funcInfo) {
        this.funcInfo = funcInfo;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getAuthorizationInfo() {
        return authorizationInfo;
    }

    public void setAuthorizationInfo(String authorizationInfo) {
        this.authorizationInfo = authorizationInfo;
    }

    public String getAuthorizerRefreshToken() {
        return authorizerRefreshToken;
    }

    public void setAuthorizerRefreshToken(String authorizerRefreshToken) {
        this.authorizerRefreshToken = authorizerRefreshToken;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getMainpage() {
        return mainpage;
    }

    public void setMainpage(String mainpage) {
        this.mainpage = mainpage;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", jwid=").append(jwid);
        sb.append(", name=").append(name);
        sb.append(", applicationType=").append(applicationType);
        sb.append(", qrcodeimg=").append(qrcodeimg);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", weixinNumber=").append(weixinNumber);
        sb.append(", weixinAppid=").append(weixinAppid);
        sb.append(", weixinAppsecret=").append(weixinAppsecret);
        sb.append(", accountType=").append(accountType);
        sb.append(", authStatus=").append(authStatus);
        sb.append(", accessToken=").append(accessToken);
        sb.append(", tokenGettime=").append(tokenGettime);
        sb.append(", apiticket=").append(apiticket);
        sb.append(", apiticketGettime=").append(apiticketGettime);
        sb.append(", jsapiticket=").append(jsapiticket);
        sb.append(", jsapiticketGettime=").append(jsapiticketGettime);
        sb.append(", authType=").append(authType);
        sb.append(", businessInfo=").append(businessInfo);
        sb.append(", funcInfo=").append(funcInfo);
        sb.append(", nickName=").append(nickName);
        sb.append(", headimgurl=").append(headimgurl);
        sb.append(", authorizationInfo=").append(authorizationInfo);
        sb.append(", authorizerRefreshToken=").append(authorizerRefreshToken);
        sb.append(", token=").append(token);
        sb.append(", agentId=").append(agentId);
        sb.append(", mchid=").append(mchid);
        sb.append(", mainpage=").append(mainpage);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpWebJwid other = (WechatMpWebJwid) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getApplicationType() == null ? other.getApplicationType() == null : this.getApplicationType().equals(other.getApplicationType()))
            && (this.getQrcodeimg() == null ? other.getQrcodeimg() == null : this.getQrcodeimg().equals(other.getQrcodeimg()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getWeixinNumber() == null ? other.getWeixinNumber() == null : this.getWeixinNumber().equals(other.getWeixinNumber()))
            && (this.getWeixinAppid() == null ? other.getWeixinAppid() == null : this.getWeixinAppid().equals(other.getWeixinAppid()))
            && (this.getWeixinAppsecret() == null ? other.getWeixinAppsecret() == null : this.getWeixinAppsecret().equals(other.getWeixinAppsecret()))
            && (this.getAccountType() == null ? other.getAccountType() == null : this.getAccountType().equals(other.getAccountType()))
            && (this.getAuthStatus() == null ? other.getAuthStatus() == null : this.getAuthStatus().equals(other.getAuthStatus()))
            && (this.getAccessToken() == null ? other.getAccessToken() == null : this.getAccessToken().equals(other.getAccessToken()))
            && (this.getTokenGettime() == null ? other.getTokenGettime() == null : this.getTokenGettime().equals(other.getTokenGettime()))
            && (this.getApiticket() == null ? other.getApiticket() == null : this.getApiticket().equals(other.getApiticket()))
            && (this.getApiticketGettime() == null ? other.getApiticketGettime() == null : this.getApiticketGettime().equals(other.getApiticketGettime()))
            && (this.getJsapiticket() == null ? other.getJsapiticket() == null : this.getJsapiticket().equals(other.getJsapiticket()))
            && (this.getJsapiticketGettime() == null ? other.getJsapiticketGettime() == null : this.getJsapiticketGettime().equals(other.getJsapiticketGettime()))
            && (this.getAuthType() == null ? other.getAuthType() == null : this.getAuthType().equals(other.getAuthType()))
            && (this.getBusinessInfo() == null ? other.getBusinessInfo() == null : this.getBusinessInfo().equals(other.getBusinessInfo()))
            && (this.getFuncInfo() == null ? other.getFuncInfo() == null : this.getFuncInfo().equals(other.getFuncInfo()))
            && (this.getNickName() == null ? other.getNickName() == null : this.getNickName().equals(other.getNickName()))
            && (this.getHeadimgurl() == null ? other.getHeadimgurl() == null : this.getHeadimgurl().equals(other.getHeadimgurl()))
            && (this.getAuthorizationInfo() == null ? other.getAuthorizationInfo() == null : this.getAuthorizationInfo().equals(other.getAuthorizationInfo()))
            && (this.getAuthorizerRefreshToken() == null ? other.getAuthorizerRefreshToken() == null : this.getAuthorizerRefreshToken().equals(other.getAuthorizerRefreshToken()))
            && (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))
            && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))
            && (this.getMchid() == null ? other.getMchid() == null : this.getMchid().equals(other.getMchid()))
            && (this.getMainpage() == null ? other.getMainpage() == null : this.getMainpage().equals(other.getMainpage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getApplicationType() == null) ? 0 : getApplicationType().hashCode());
        result = prime * result + ((getQrcodeimg() == null) ? 0 : getQrcodeimg().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getWeixinNumber() == null) ? 0 : getWeixinNumber().hashCode());
        result = prime * result + ((getWeixinAppid() == null) ? 0 : getWeixinAppid().hashCode());
        result = prime * result + ((getWeixinAppsecret() == null) ? 0 : getWeixinAppsecret().hashCode());
        result = prime * result + ((getAccountType() == null) ? 0 : getAccountType().hashCode());
        result = prime * result + ((getAuthStatus() == null) ? 0 : getAuthStatus().hashCode());
        result = prime * result + ((getAccessToken() == null) ? 0 : getAccessToken().hashCode());
        result = prime * result + ((getTokenGettime() == null) ? 0 : getTokenGettime().hashCode());
        result = prime * result + ((getApiticket() == null) ? 0 : getApiticket().hashCode());
        result = prime * result + ((getApiticketGettime() == null) ? 0 : getApiticketGettime().hashCode());
        result = prime * result + ((getJsapiticket() == null) ? 0 : getJsapiticket().hashCode());
        result = prime * result + ((getJsapiticketGettime() == null) ? 0 : getJsapiticketGettime().hashCode());
        result = prime * result + ((getAuthType() == null) ? 0 : getAuthType().hashCode());
        result = prime * result + ((getBusinessInfo() == null) ? 0 : getBusinessInfo().hashCode());
        result = prime * result + ((getFuncInfo() == null) ? 0 : getFuncInfo().hashCode());
        result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
        result = prime * result + ((getHeadimgurl() == null) ? 0 : getHeadimgurl().hashCode());
        result = prime * result + ((getAuthorizationInfo() == null) ? 0 : getAuthorizationInfo().hashCode());
        result = prime * result + ((getAuthorizerRefreshToken() == null) ? 0 : getAuthorizerRefreshToken().hashCode());
        result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        result = prime * result + ((getMchid() == null) ? 0 : getMchid().hashCode());
        result = prime * result + ((getMainpage() == null) ? 0 : getMainpage().hashCode());
        return result;
    }
}